Skip to content

docs: add GitHub links, llms.txt, and intersphinx - #6308

Open
henryiii wants to merge 3 commits into
pybind:masterfrom
henryiii:docs/furo-github-links
Open

henryiii wants to merge 3 commits into
pybind:masterfrom
henryiii:docs/furo-github-links

Conversation

@henryiii

Copy link
Copy Markdown
Collaborator

🤖 AI text below 🤖

Description

Copies these docs features from scikit-build-core:

  • View-source, edit, and GitHub icons at the top of each page, and a GitHub icon in the footer. The view-source icon needs a newer furo, so the pin goes from 2024.1.29 to 2025.12.19.
  • llms.txt and markdown copies of the pages, from sphinx-llm. sphinx-llm runs a second Sphinx build, so the readme.rst cleanup now uses missing_ok=True.
  • intersphinx for the Python and CMake docs. This removes 4 nitpicky warnings.
  • Extra padding at the bottom of the sidebar.

Suggested changelog entry:

  • Documentation: add GitHub source links, llms.txt, and intersphinx links.

Copy features from the scikit-build-core docs: view-source, edit, and
GitHub icons at the top of each page, a GitHub footer icon, extra
sidebar padding, intersphinx for Python and CMake, and llms.txt via
sphinx-llm. Upgrade furo to get the view-this-page icon.

Assisted-by: ClaudeCode:claude-opus-5-5
@rwgk

rwgk commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

— codex on behalf of Ralf —

Run the HTML and Markdown builds sequentially. The pinned sphinx-llm starts the Markdown build while HTML is still building. Both processes run the same hooks that create and remove docs/readme.rst. In a small fixture with the pinned dependencies, I forced Markdown to reach cleanup before HTML read the file. The HTML output omitted the README and Sphinx still exited successfully. Please set llms_txt_build_parallel = False. I verified that the PR builds in serial mode and produces llms.txt. Scheduler, Build hooks

Fix the generated README page's GitHub links. I checked the built readme.html. Its View and Edit buttons point to docs/readme.rst, which is generated at build time and returns 404 on GitHub. Point those buttons to the root README.rst or exclude the standalone generated page. Theme settings, Tracked README

Use the include-read event to adjust the README for LaTeX in memory.
This avoids a race between parallel HTML and Markdown builds and a
generated readme page with broken GitHub links.

Assisted-by: ClaudeCode:claude-opus-5-5
@henryiii

Copy link
Copy Markdown
Collaborator Author

Fixed it by not generating docs/readme.rst at all. :)

@rwgk

rwgk commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

— codex on behalf of Ralf —

The direct README include fixes both observed README problems. I confirmed that the rendered docs include the README and no longer generate the standalone page with broken View and Edit links.

Serialize Doxygen generation across the two builders. The HTML and Markdown builds still run the same Doxygen hook into the same output directory. I observed both invocations overlap. By delaying the Markdown Doxygen process immediately after it opened the shared index.xml for truncation, I reproduced the HTML build failing when Breathe parsed the empty file. The PR otherwise built successfully and produced HTML and llms.txt with llms_txt_build_parallel = False. Please set that flag or give the two builders separate XML output directories. Build hook, Shared output configuration

Generated by Codex. Ralf has yet to review these findings.

The HTML and Markdown builders both run doxygen into the same XML
directory, so a parallel build can read a truncated index.xml.

Assisted-by: ClaudeCode:claude-fable-5-2
@henryiii

Copy link
Copy Markdown
Collaborator Author

🤖 AI text below 🤖

Set llms_txt_build_parallel = False in 29492e7. The Markdown build now runs after the HTML build, so the two Doxygen runs cannot overlap.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants